package restfuljobs

class UserWrapper extends User {

    private Long id
	
	public Long getId() {
		return id
	}
	
	public void setId(Long id) {
		this.id = id
	}
		
	public void setFromXML(def node) {
		
		node.childNodes().each {					
			if (it.text().isDouble()) {
				this."$it.name" = Double.parseDouble(it.text())
			} else if(it.name == "dateCreated" || it.name == "lastUpdated") {
				
			} else {
				this."$it.name" = it.text()
			}
		}		
	}
	
	
}